class Stack(list):
    def push(self, anObject):
        return self.append(anObject)

    def count(self):
        return len(self)

    def last(self):
        return self[-1]

    def first(self):
        return self[0]
